package com.qingcloud.adminbackend.entity.sysfunction;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 系统功能表
 * </p>
 *
 * @author liyuhong
 * @since 2018-11-16
 */
@Data
public class SysFunctionDTO {

    @ApiModelProperty(value = "用户ID", example = "")
    private String userId;

    @ApiModelProperty(value = "菜单类型 1网格化 2健康云", example = "")
    private String menuType;

    @ApiModelProperty(value = "订单Id集合", example = "")
    private List<String> orderIds;

    @Data
    public static class SysFunctionDTOTree {

        @ApiModelProperty(value = "分类ID", example = "100100")
        private String id;

        @ApiModelProperty(value = "父分类ID", example = "100", hidden = true)
        private String parentId;

        @ApiModelProperty(value = "分类名称", example = "空气污染数据")
        private String label;

        @ApiModelProperty(value = "状态(0:删除，1：未删除)", example = "0")
        private Integer state;

        @ApiModelProperty(value = "目录排序序号")
        private Integer orderNum;

        List<SysFunctionDTOTree> children;
    }
}
